home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 5.3 KB | 218 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Locrian:WWDCSun:CPlusPlus:PfTypLs.xh.
- * Generated using:
- * SOM Precompiler somipc: somc/smemit.c
- * SOM Emitter emitxh.dll: somc/smmain.c
- */
-
- /*
- *
- * Classes defined in this interface
- *
- */
-
-
- #ifndef SOM_ODPlatformTypeSet_xh
- #define SOM_ODPlatformTypeSet_xh
-
- class ODPlatformTypeSet;
-
- #define ODPlatformTypeSet_MajorVersion 0
- #define ODPlatformTypeSet_MinorVersion 0
-
- /* C++ som defs */
- #include <somcls.xh>
-
- /* Include C++ parent defs */
- #ifndef SOM_ODObject_xh
- #include <ODObject.xh>
- #endif
-
- #ifndef ODPlatformTypeSet_API
- #define ODPlatformTypeSet_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
- class ODExtension;
- class ODPlatformTypeSetIterator;
-
- /*
- * End of user-defined types.
- */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export on
- #endif
-
-
- /* A procedure to create the ODPlatformTypeSet Class */
- SOMEXTERN SOMClass * SOMLINK ODPlatformTypeSetNewClass(
- integer4 majorVersion,
- integer4 minorVersion);
-
- /* The API to the ODPlatformTypeSet class object, and the methods it introduces. */
- typedef struct ODPlatformTypeSetClassDataStructure {
- SOMClass *classObject;
- somMToken InitPlatformTypeSet;
- somMToken Add;
- somMToken Union;
- somMToken Remove;
- somMToken Difference;
- somMToken Contains;
- somMToken Count;
- somMToken CreatePlatformTypeSetIterator;
- } ODPlatformTypeSetClassDataStructure;
- #ifdef SOM_NO_DATA_EXPORTS
- SOMEXTERN ODPlatformTypeSetClassDataStructure * ODPlatformTypeSetGetClassData ( void );
- # undef ODPlatformTypeSetClassData
- # define ODPlatformTypeSetClassData (*ODPlatformTypeSetGetClassData())
- #else
- SOMEXTERN ODPlatformTypeSetClassDataStructure ODPlatformTypeSetClassData;
- #endif /* SOM_NO_DATA_EXPORTS */
-
- #if applec ^ PRAGMA_LIB_EXPORT
- #pragma lib_export off
- #endif
-
- #define _ODPlatformTypeSet ODPlatformTypeSetClassData.classObject
-
- /* The API to parentMtabs for ODPlatformTypeSet, and the instance data it introduces. */
- SOMEXTERN struct ODPlatformTypeSetCClassDataStructure {
- somMethodTabs parentMtab;
- somDToken instanceDataToken;
- } ODPlatformTypeSetCClassData;
-
- /*
- * -- Typedefs for Procedures that support Methods introduced by ODPlatformTypeSet
- */
- SOMEXTERN {
- typedef void (* SOMLINK somTD_ODPlatformTypeSet_InitPlatformTypeSet)(ODPlatformTypeSet *somSelf, Environment *ev);
- typedef void (* SOMLINK somTD_ODPlatformTypeSet_Add)(ODPlatformTypeSet *somSelf, Environment *ev,
- ODPlatformType type);
- typedef void (* SOMLINK somTD_ODPlatformTypeSet_Union)(ODPlatformTypeSet *somSelf, Environment *ev,
- ODPlatformTypeSet* typeSet);
- typedef void (* SOMLINK somTD_ODPlatformTypeSet_Remove)(ODPlatformTypeSet *somSelf, Environment *ev,
- ODPlatformType type);
- typedef void (* SOMLINK somTD_ODPlatformTypeSet_Difference)(ODPlatformTypeSet *somSelf, Environment *ev,
- ODPlatformTypeSet* typeSet);
- typedef ODBoolean (* SOMLINK somTD_ODPlatformTypeSet_Contains)(ODPlatformTypeSet *somSelf, Environment *ev,
- ODPlatformType type);
- typedef ODULong (* SOMLINK somTD_ODPlatformTypeSet_Count)(ODPlatformTypeSet *somSelf, Environment *ev);
- typedef ODPlatformTypeSetIterator* (* SOMLINK somTD_ODPlatformTypeSet_CreatePlatformTypeSetIterator)(ODPlatformTypeSet *somSelf, Environment *ev);
- }
-
- #endif /* ODPlatformTypeSet_API */
-
-
- /*
- * -- Method Tokens are Thunks
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for ODPlatformTypeSet
- */
- class ODPlatformTypeSet : public ODObject
- {
- public:
-
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- if (!ODPlatformTypeSetClassData.classObject)
- ODPlatformTypeSetNewClass(ODPlatformTypeSet_MajorVersion,ODPlatformTypeSet_MinorVersion);
- return (void *)
- ((somTD_SOMClass_somNew)
- somresolve_((SOMObject *)((void*)(ODPlatformTypeSetClassData.classObject)),
- SOMClassClassData.somNew))
- ((SOMClass *)((void*)(ODPlatformTypeSetClassData.classObject)));
- }
-
- void operator delete(void * obj)
- {
- ((SOMObject *)obj)->somFree();
- }
-
- /* public method: InitPlatformTypeSet */
- void InitPlatformTypeSet(Environment *ev)
- {
- SOM_Resolve(this,ODPlatformTypeSet,InitPlatformTypeSet)
- (this,ev);
- }
-
-
- /* public method: Add */
- void Add(Environment *ev,
- ODPlatformType type)
- {
- SOM_Resolve(this,ODPlatformTypeSet,Add)
- (this,ev,type);
- }
-
-
- /* public method: Union */
- void Union(Environment *ev,
- ODPlatformTypeSet* typeSet)
- {
- SOM_Resolve(this,ODPlatformTypeSet,Union)
- (this,ev,typeSet);
- }
-
-
- /* public method: Remove */
- void Remove(Environment *ev,
- ODPlatformType type)
- {
- SOM_Resolve(this,ODPlatformTypeSet,Remove)
- (this,ev,type);
- }
-
-
- /* public method: Difference */
- void Difference(Environment *ev,
- ODPlatformTypeSet* typeSet)
- {
- SOM_Resolve(this,ODPlatformTypeSet,Difference)
- (this,ev,typeSet);
- }
-
-
- /* public method: Contains */
- ODBoolean Contains(Environment *ev,
- ODPlatformType type)
- {
- return SOM_Resolve(this,ODPlatformTypeSet,Contains)
- (this,ev,type);
- }
-
-
- /* public method: Count */
- ODULong Count(Environment *ev)
- {
- return SOM_Resolve(this,ODPlatformTypeSet,Count)
- (this,ev);
- }
-
-
- /* public method: CreatePlatformTypeSetIterator */
- ODPlatformTypeSetIterator* CreatePlatformTypeSetIterator(Environment *ev)
- {
- return SOM_Resolve(this,ODPlatformTypeSet,CreatePlatformTypeSetIterator)
- (this,ev);
- }
-
-
-
- }; /* ODPlatformTypeSet */
-
-
-
- #endif /* SOM_ODPlatformTypeSet_xh */
-